package com.extrace.misc.model;

import com.google.gson.annotations.Expose;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "UserInfo")
public class UserInfo{
    @Expose private int UID;
    @Expose private String PWD;
    @Expose private String name;
    @Expose private int URull;
    @Expose private String telCode;
    @Expose private int status;
    @Expose private String dptID;
    @Expose private String receivePackageID;
    @Expose private String delivePackageID;
    @Expose private String transPackageID;

    public int getUID() {
        return UID;
    }

    public int setID(int id) {
        return UID = id;
    }

    public void setPWD(String value) {
        this.PWD = value;
    }

    public String getPWD() {
        return PWD;
    }

    public void setName(String value) {
        this.name = value;
    }

    public String getName() {
        return name;
    }

    public void setURull(int value) {
        this.URull = value;
    }

    public int getURull() {
        return URull;
    }

    public void setTelCode(String value) {
        this.telCode = value;
    }

    public String getTelCode() {
        return telCode;
    }

    public void setStatus(int value) {
        this.status = value;
    }

    public int getStatus() {
        return status;
    }

    public void setDptID(String value) {
        this.dptID = value;
    }

    public String getDptID() {
        return dptID;
    }

    public void setReceivePackageID(String value) {
        this.receivePackageID = value;
    }

    public String getReceivePackageID() {
        return receivePackageID;
    }

    public void setDelivePackageID(String value) {
        this.delivePackageID = value;
    }

    public String getDelivePackageID() {
        return delivePackageID;
    }

    public void setTransPackageID(String value) {
        this.transPackageID = value;
    }

    public String geTransPackageID() {
        return transPackageID;
    }

    public String toString() {
        return toString(false);
    }

    public String toString(boolean idOnly) {
        if (idOnly) {
            return String.valueOf(getUID());
        }
        else {
            StringBuffer sb = new StringBuffer();
            sb.append("UserInfo[ ");
            sb.append("UID=").append(getUID()).append(" ");
            sb.append("PWD=").append(getPWD()).append(" ");
            sb.append("Name=").append(getName()).append(" ");
            sb.append("URull=").append(getURull()).append(" ");
            sb.append("TelCode=").append(getTelCode()).append(" ");
            sb.append("Status=").append(getStatus()).append(" ");
            sb.append("DptID=").append(getDptID()).append(" ");
            sb.append("]");
            return sb.toString();
        }
    }

}
